import { DatePicker as AntdDatePicker } from 'antd';
import React from 'react';
import { commonProps } from './index';

// type
import type { AntdYearPickerProps } from './index';

export type Props = AntdYearPickerProps;

function YearPicker(props: Props) {
  const YearPickerProps = {
    ...commonProps,
    ...props,
  };
  return <AntdDatePicker.YearPicker {...YearPickerProps} />;
}

export default YearPicker;
